#include <stdio.h>

int main()
{
	//定义数组
	int score[5];

	score[0] = 98;
	score[1] = 88;
	score[2] = 96;
	score[3] = 99;
	score[4] = 77;
#if 0
	int i = 0;
	while(1){
		if(i>=5) break;//限定i的范围是0-4
		printf("第%d个学生的年龄为%d岁!\n",
			i+1,score[i]);

		i = i+1;//自增1
	}


	for(int i=0;i<5;i = i+1){
		printf("第%d个学生的年龄为%d岁!\n",
			i+1,score[i]);
	}

#else
  int i = 0;
f:
       
       printf("第%d个学生的成绩为%d!\n",
           i+1,score[i]);
           i=i+1;
              if(i<5) goto f;        
#endif
	return 0;
}